import https from '@/plugins/luch-request_0.0.7/request'

export const getstyle = data => {
	return https.get('/apihkds/api/case/select_client_list', data)
}

export const getcastlist = data => {
	return https.get('/apihkds/api/case/getlist', data)
}

export const getcastdetail = data => {
	return https.get('/apihkds/api/case/getdetail', data)
}

// 案例所有分类
export const getAllClass = data => {
	return https.get('/apihkds/api/case/content_select_list', data)
}

// 案例分类
export const getClass = data => {
	return https.get('/apihkds/api/case/select_list', data)
}

// 案例管理列表总数
export const getListTotal = data => {
	return https.get('/apihkds/api/case/total', data)
}

// 案例上架列表
export const getOnList = data => {
	return https.get('/apihkds/api/case/put_on_list', data)
}

// 案例下架列表
export const getOffList = data => {
	return https.get('/apihkds/api/case/put_off_list', data)
}

// 案例公共库列表
export const getPubliclist = data => {
	return https.get('/apihkds/api/case/publiclist', data)
}

// 案例公共库上架
export const publicPutOn = data => {
	return https.post('/apihkds/api/case/add', data)
}

// 案例上架
export const putOn = data => {
	return https.post('/apihkds/api/case/put_on', data)
}

// 案例下架
export const putOff = data => {
	return https.post('/apihkds/api/case/put_off', data)
}

// 案例置顶
export const setTop = data => {
	return https.post('/apihkds/api/case/set_top', data)
}

// 案例删除
export const listDel = data => {
	return https.post('/apihkds/api/case/delete', data)
}
